package cc.autoapi.pucong.auto.flow.core.flow.execNode.entity.node;

import cc.autoapi.pucong.auto.flow.core.flow.execNode.eventBus.PublishMsg;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class NodeHandlerMsgDto extends PublishMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    private String instanceId;

    private String apiId;

    private String nodeId;

    // 是否忽略、跳过执行
    private Boolean isIgnore;

    public NodeHandlerMsgDto(String apiId, String instanceId, String nodeId) {
        this.apiId = apiId;
        this.instanceId = instanceId;
        this.nodeId = nodeId;
        this.isIgnore = false;
    }

    public NodeHandlerMsgDto(String apiId, String instanceId, String nodeId, Boolean isIgnore) {
        this.apiId = apiId;
        this.instanceId = instanceId;
        this.nodeId = nodeId;
        this.isIgnore = isIgnore;
    }
}
